// 对于本地存储有三个操作 设置 获取 删除
const KEY = "my-token-element-pc";

// 获取
export const getToken = () => {
  return localStorage.getItem(KEY);
};

// 设置
export const setToken = (newToken) => {
  localStorage.setItem(KEY, newToken);
};
// console.log(setToken);

// 删除
export const delToken = () => {
  localStorage.removeItem(KEY);
};